// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-06-11 17:40:12
// 生成路径: api/v1/app/app_user.go
// 生成人：yxfmlbb
// desc:用户表相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package app

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/app/model"
)

// AppUserSearchReq 分页请求参数
type AppUserSearchReq struct {
	g.Meta `path:"/list" tags:"用户表" method:"get" summary:"用户表列表"`
	commonApi.Author
	model.AppUserSearchReq
}

// AppUserSearchRes 列表返回结果
type AppUserSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.AppUserSearchRes
}

// AppUserAddReq 添加操作请求参数
type AppUserAddReq struct {
	g.Meta `path:"/add" tags:"用户表" method:"post" summary:"用户表添加"`
	commonApi.Author
	*model.AppUserAddReq
}

// AppUserAddRes 添加操作返回结果
type AppUserAddRes struct {
	commonApi.EmptyRes
}

// AppUserEditReq 修改操作请求参数
type AppUserEditReq struct {
	g.Meta `path:"/edit" tags:"用户表" method:"put" summary:"用户表修改"`
	commonApi.Author
	*model.AppUserEditReq
}

// AppUserEditRes 修改操作返回结果
type AppUserEditRes struct {
	commonApi.EmptyRes
}

// AppUserGetReq 获取一条数据请求
type AppUserGetReq struct {
	g.Meta `path:"/get" tags:"用户表" method:"get" summary:"获取用户表信息"`
	commonApi.Author
	Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}

// AppUserGetRes 获取一条数据结果
type AppUserGetRes struct {
	g.Meta `mime:"application/json"`
	*model.AppUserInfoRes
}

// AppUserDeleteReq 删除数据请求
type AppUserDeleteReq struct {
	g.Meta `path:"/delete" tags:"用户表" method:"delete" summary:"删除用户表"`
	commonApi.Author
	Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}

// AppUserDeleteRes 删除数据返回
type AppUserDeleteRes struct {
	commonApi.EmptyRes
}
